package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;
//1111111111111
@Getter
@Setter
public class JSONResult {
    private boolean success = true;
    private String msg;
    //成功时返回的数据
    private Object result;

    //登录失败时,调用该方法设置错误信息
    public JSONResult mark(String msg) {
        this.success = false;
        this.msg = msg;
        return this;
    }
}
